home *** CD-ROM | disk | FTP | other *** search
/ Windows Game Programming for Dummies (2nd Edition) / WinGamProgFD.iso / pc / DirectX SDK / DXSDK / samples / Multimedia / DirectInput / FFConst / readme.txt < prev    next >
Encoding:
Text File  |  2001-10-10  |  1.6 KB  |  44 lines

  1. //-----------------------------------------------------------------------------
  2. // 
  3. // Sample Name: FFConst Sample
  4. // 
  5. // Copyright (c) 1998-2001 Microsoft Corporation. All rights reserved.
  6. // 
  7. //-----------------------------------------------------------------------------
  8.  
  9.  
  10. Description
  11. ===========
  12.   This application applies raw forces to a force feedback input device, 
  13.   illustrating how a simulator-type application can use force feedback to 
  14.   generate forces computed by a physics engine.
  15.  
  16.   You must have a force feedback device connected to your system in order to 
  17.   run the application.
  18.  
  19. Path
  20. ====
  21.   Source: DXSDK\Samples\Multimedia\DInput\FFConst
  22.  
  23.   Executable: DXSDK\Samples\Multimedia\DInput\Bin
  24.  
  25. User's Guide
  26. ============
  27.   When you run the application, it displays a window with a crosshair and a 
  28.   black spot in it. Click the mouse anywhere within the window's client area to 
  29.   move the black spot. (Note that moving the device itself does not do 
  30.   anything.) FFConst exerts a constant force on the device from the 
  31.   direction of the spot, in proportion to the distance from the crosshair. You 
  32.   can also hold down the mouse button and move the spot continuously.
  33.  
  34. Programming Notes
  35. =================
  36.   This sample program enumerates the input devices and acquires the first 
  37.   force-feedback device that it finds. If none are detected, it displays a 
  38.   message and terminates.
  39.  
  40.   When the user moves the black spot, the joySetForcesXY function converts the 
  41.   cursor coordinates to a force direction and magnitude. This data is used to 
  42.   modify the parameters of the constant force effect.
  43.  
  44.